feat: CLAUDE.md 注入部を最終縮小(#119、v0.69.0)#135
Merged
Merged
Conversation
- 「/clear を活用」行削除(モデルには実行不能な旧世代 babysitting)
- Conventional Commits を既存規約優先の条件付きに(rules/git-workflow と整合)
- Spec Kit ブロックを {{FEATURE:spec-kit}} + INSTALL_COMMANDS ゲートの partial 1 行へ
- web-content-extraction partial を harness 標準注入と重複しないポリシー 1 行に縮小
- codex partial の旧能力前提タスクルーティングをクロスモデルレビュー + 明示依頼時 rescue に縮小
- 最大構成の合成 kit セクションは約 34% 縮小(分類器対策 #76 と同方向の純減)
Closes #119
There was a problem hiding this comment.
Pull request overview
This PR reduces the always-injected (base + partials) CLAUDE.md kit-managed section to lower context tax while keeping behaviorally important guidance and maintaining scenario-test compatibility.
Changes:
- Removes the
/clear“long sessions” line and makes the Conventional Commits rule conditional on existing repo conventions (keeping the literal “Conventional Commits” phrase for scenario tests). - Moves the Spec Kit guidance from always-on base text to a
{{FEATURE:spec-kit}}marker +INSTALL_COMMANDS-gated partial injection. - Shrinks the
web-content-extractionpartial to only the “don’t analyze raw HTML” policy line; updates codex-plugin partial text to focus on cross-model review/rescue use.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| lib/deploy.sh | Adds spec-kit feature injection gated by INSTALL_COMMANDS during CLAUDE.md build. |
| i18n/ja/CLAUDE.md.base | Removes /clear + always-on Spec Kit block; rewrites commit-style guidance; adds {{FEATURE:spec-kit}}. |
| i18n/en/CLAUDE.md.base | English equivalent of the base slimming and feature marker changes. |
| i18n/ja/partials/spec-kit.md | New minimal Spec Kit optional section content (JA). |
| i18n/en/partials/spec-kit.md | New minimal Spec Kit optional section content (EN). |
| i18n/ja/partials/web-content-extraction.md | Removes redundant command list + SKILL.md reference, keeps the core policy (JA). |
| i18n/en/partials/web-content-extraction.md | Same partial slimming as JA (EN). |
| features/codex-plugin/CLAUDE.md.partial.ja | Rewrites delegation guidance to cross-model review + explicit rescue only (JA). |
| features/codex-plugin/CLAUDE.md.partial.en | Same codex guidance rewrite (EN). |
| CHANGELOG.md | Adds the 0.69.0 entry describing the CLAUDE.md injection slimming changes. |
| @@ -510,6 +510,11 @@ build_claude_md_to_file() { | |||
| cp -a "$base" "$out" | |||
|
|
|||
| # Web content extraction standard rule — only when the skill is installed | |||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
LLM 性能監査計画 #121 の P4-13(#119)。配布 CLAUDE.md の kit 注入部(base + partials)の最終縮小。Fable 5 分類器対策(#76 / v0.54.0)と同方向の常時注入削減で、最大構成の合成 kit セクションは約 34% 縮小(ja: 2360 → 1557 bytes)。
変更内容
{{FEATURE:spec-kit}}+INSTALL_COMMANDSゲートの 1 行 partial に。minimal では注入されず、マーカー共存規則・constitution 優先順位は commands/spec-kit-init.md に集約(実在確認済み)検証
Closes #119